from django.db import models


# Create your models here.

class QingJia(models.Model):
    tname = models.CharField(max_length=255)


class Student(models.Model):
    name = models.CharField(max_length=255, null=False)
    reason = models.CharField(max_length=255, null=False)
    state = models.CharField(max_length=255)
    stype = models.ForeignKey(to=QingJia, on_delete=models.CASCADE)
